package com.sh.business.domain.bo;

import com.sh.business.domain.Mining;
import com.sh.common.mybatis.core.domain.BaseEntity;
import com.sh.common.core.validate.AddGroup;
import com.sh.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;

/**
 * 矿机业务对象 bms_mining
 *
 * @author ruoyi
 * @date 2024-10-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Mining.class, reverseConvertGenerate = false)
public class MiningBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 价格
     */
    @NotNull(message = "价格不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal price;

    /**
     * 图标
     */
    @NotBlank(message = "图标不能为空", groups = { AddGroup.class, EditGroup.class })
    private String icon;

    /**
     * 算力
     */
    @NotNull(message = "算力不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal computility;

    /**
     * 期限
     */
    @NotBlank(message = "期限不能为空", groups = { AddGroup.class, EditGroup.class })
    private String term;

    /**
     * 日产量
     */
    @NotBlank(message = "日产量不能为空", groups = { AddGroup.class, EditGroup.class })
    private String dailyCapacity;


}
